using XDQ.VAT.Students;
using XDQ.VAT.Students.Dtos;
using XDQ.VAT.Classes;
using XDQ.VAT.Classes.Dtos;
using XDQ.VAT.Courses;
using XDQ.VAT.Courses.Dtos;
using XDQ.VAT.Exams;
using XDQ.VAT.Exams.Dtos;
using AutoMapper;

namespace XDQ.VAT
{
    public class VATApplicationAutoMapperProfile : Profile
    {
        public VATApplicationAutoMapperProfile()
        {
            /* You can configure your AutoMapper mapping configuration here.
             * Alternatively, you can split your mapping configurations
             * into multiple profile classes for a better organization. */
            CreateMap<AppStudent, AppStudentDto>();
            CreateMap<CreateUpdateAppStudentDto, AppStudent>(MemberList.Source);
            CreateMap<AppClass, AppClassDto>();
            CreateMap<CreateUpdateAppClassDto, AppClass>(MemberList.Source);
            CreateMap<AppCourse, AppCourseDto>();
            CreateMap<CreateUpdateAppCourseDto, AppCourse>(MemberList.Source);
            CreateMap<AppExam, AppExamDto>();
            CreateMap<CreateUpdateAppExamDto, AppExam>(MemberList.Source);
        }
    }
}
